#ifndef _CONFIG_H_
#define _CONFIG_H_

#define JSRUN 1

//#define WITH_SYSLOG 1
#define WITH_NSPR 1
//#define WITH_EXECINFO 1

//#define VERBOSE_LEVEL 3
//#define VERBOSE_LEVEL 5
#define VERBOSE_LEVEL 9

#define _BSD_SOURCE

#define PROGRAM_SHORT_NAME "jsappserv"
#define PROGRAM_NAME "Javascript Server"
#define WELCOME_TEXT "Javascript Server by Denis Travnikov, d.travnikov@gmail.com."


#define MAX_THREADS 1000

#define DEFAULT_BUF_SIZE 5120

#define EVAL_STREAM_BUF_SIZE 65535
#define USER_AGENT_STRING "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"


#define PS1 "> "

#define LOCKFILE 			"/tmp/jshost.lock"

#define APPLICATION_SOCKET 	"/tmp/jshost-appl.sock"

#define HTTP_SOCKET 		"/tmp/jshost-http.sock"

#define HTTP_PORT 51234

#define READ_CHUNK_SIZE 1000000


#define HOOK_LOGO() do{ printf("%s\n", LOGO); }while(0)







#endif /* _CONFIG_H_ */
